package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.dto.dto.MerchantDTO;
import com.huiminpay.merchant.vo.MerchantVo;
import com.huiminpay.merchant.vo.PayChannelParamVo;
import com.huiminpay.transaction.api.dto.PayChannelParamDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper//用1.3以上的版本,1.3以下的版本和lombok有冲突
public interface MerchantConvert {
    MerchantConvert INSTANCE= Mappers.getMapper(MerchantConvert.class);

    MerchantVo DTodaoVo(MerchantDTO merchantDTO);

    MerchantDTO VodaoDTo(MerchantVo merchantVo);

    List<MerchantVo> DToListdaoVoList(List<MerchantDTO> list);
    PayChannelParamVo pDTodaoVo(PayChannelParamDTO payChannelParamDTO);
    PayChannelParamDTO pVodaoDTo(PayChannelParamVo payChannelParamVo);
}
